/**
 * 17/nov/2011 - fabio.melillo@gmail.com
 */
package org.unisannio.util;

import android.content.BroadcastReceiver;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

/**
 * @author Fabio Melillo
 *
 */
public class BroadcastRequest {

	private Intent intent;
	private String receiverPermission;
	private BroadcastReceiver resultReceiver;
	private Handler scheduler;
	private int initialCode;
	private String initialData;
	private Bundle initialExtras;
	
	public BroadcastRequest(Intent intent, String receiverPermission,
			BroadcastReceiver resultReceiver, Handler scheduler,
			int initialCode, String initialData, Bundle initialExtras) {
		super();
		this.intent = intent;
		this.receiverPermission = receiverPermission;
		this.resultReceiver = resultReceiver;
		this.scheduler = scheduler;
		this.initialCode = initialCode;
		this.initialData = initialData;
		this.initialExtras = initialExtras;
	}
	
	public Intent getIntent() {
		return intent;
	}
	public void setIntent(Intent intent) {
		this.intent = intent;
	}
	public String getReceiverPermission() {
		return receiverPermission;
	}
	public void setReceiverPermission(String receiverPermission) {
		this.receiverPermission = receiverPermission;
	}
	public BroadcastReceiver getResultReceiver() {
		return resultReceiver;
	}
	public void setResultReceiver(BroadcastReceiver resultReceiver) {
		this.resultReceiver = resultReceiver;
	}
	public Handler getScheduler() {
		return scheduler;
	}
	/**
	 * The scheduler is not supported on the remote peer
	 * It will be replaced by the null object
	 * @param scheduler
	 */
	public void setScheduler(Handler scheduler) {
		this.scheduler = scheduler;
	}
	public int getInitialCode() {
		return initialCode;
	}
	public void setInitialCode(int initialCode) {
		this.initialCode = initialCode;
	}
	public String getInitialData() {
		return initialData;
	}
	public void setInitialData(String initialData) {
		this.initialData = initialData;
	}
	public Bundle getInitialExtras() {
		return initialExtras;
	}
	/**
	 * In this version the blob components, or binary buffers are not supported
	 * @param initialExtras
	 */
	public void setInitialExtras(Bundle initialExtras) {
		this.initialExtras = initialExtras;
	}
	
	
	
}
